from flask import Flask, request
app = Flask(__name__)

@app.route('/login', methods=['GET', 'POST'])
def index():
    if request.method == 'POST':
        return "post method"
    else:
        return "get method"
        
if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8000, debug=True)